//
//  FormtiesViewController.m
//  insight
//
//  Created by HY on 2018/9/25.
//  Copyright © 2018年 dfhfe. All rights reserved.
//

#import "FormtiesViewController.h"

#import "ActivityTableViewController.h"
#import "TempleTableViewController.h"
#import "WeaponsTableViewController.h"

@interface FormtiesViewController ()

@end

@implementation FormtiesViewController

- (void)viewDidLoad {
    [super viewDidLoad];
       self.navigationItem.title = @"结缘";
    //添加全部控制器
    [self setupAllChildViewController];
    // Do any additional setup after loading the view.
}



#pragma mark - 设置全部子控制器到
- (void)setupAllChildViewController {
    
    //活动
    [self setOneChildController:[[ActivityTableViewController alloc]init] title:@"活动"];
    
    //名寺
    [self setOneChildController:[[TempleTableViewController alloc]init] title:@"名寺"];
    
    //法器
    [self setOneChildController:[[WeaponsTableViewController alloc]init] title:@"法器"];
    
    
    
}


- (void)setOneChildController:(UIViewController *)vc title:(NSString *)title
{
    vc.title = title;
    [self addChildViewController:vc];
}




@end
